﻿namespace IceCS.DesignPattern.Core.BusinessDelegatePattern.StudentManage
{
    /// <summary>
    /// 业务查询服务
    /// </summary>
    public class BusinessServiceLookUp
    {
        public IBusinessService GetBusinessService(ServerType serverType)
        {
            switch (serverType)
            {
                case ServerType.Accommodation:
                    return new AccommodationService();
                case ServerType.Score:
                    return new ScoreService();
            }
            return null;
        }
    }
}
